package com.smgeek.gkrpc.sever;

import com.smgeek.gkrpc.codec.Decoder;
import com.smgeek.gkrpc.codec.Encoder;
import com.smgeek.gkrpc.codec.JSONDecoder;
import com.smgeek.gkrpc.codec.JSONEncoder;
import com.smgeek.gkrpc.transport.HttpTransportServer;
import com.smgeek.gkrpc.transport.TransportServer;
import lombok.Data;

/**
 * server配置
 * @ClassName RpcServerConfig
 * @Author wuyuyang
 * @Date 2022/1/6 19:36
 * @Description RpcServerConfig
 * @Version 1.0
 */
@Data
public class RpcServerConfig {
    //网络协议
    private Class<? extends TransportServer> transportClass = HttpTransportServer.class;
    //序列化
    private Class<? extends Encoder>  encoderClass = JSONEncoder.class;
    //反序列化
    private Class<? extends Decoder> decoderClass = JSONDecoder.class;
    //端口号
    private int port = 3000;
}
